import Base from 'models/base';

import SystemUtil from 'utils/systemUtil';

export default class Advertisement extends Base {
  constructor(goods) {
    super();

    this.initObject(goods, ['branchId', 'partnerId'])

    this.id = SystemUtil.getId();
    this.defId = goods.goodsDefId;
    this.pic = this.getOnePic(goods.goodsPic);
    this.name = goods.goodsName;
    this.price = goods.goodsModelSalePrice;
  }
}
